package com.kksoft.readcm.b;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import com.kksoft.readcm.a.Appconfig;
import com.kksoft.readcm.a.ag;
import com.kksoft.readcm.a.ah;
import com.kksoft.readcm.activity.App;
import com.kksoft.readcm.c.d;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.apache.http.impl.client.DefaultHttpClient;

public final class j extends m
  implements d
{
  private final String a;
  private final String b;
  private ah c;
  private final boolean d;

  public j(String paramString1, String paramString2, ah paramah)
  {
    super(2);
    this.a = paramString1;
    this.b = paramString2;
    this.d = true;
    this.c = paramah;
  }

  public final Appconfig D()
  {
    return this.c.s();
  }

  public final void a()
  {
    String str1 = this.b;
    if (new File(str1).exists());
    for (Object localObject1 = BitmapFactory.decodeFile(this.b); ; localObject1 = null)
    {
      if (localObject1 != null)
      {
        ah localah1 = this.c;
        String str2 = this.a;
        //localah1.a((Bitmap)localObject1, str2, 1);
      }
      while (true)
      {
        return;
//        if (this.d)
//        {
//          StringBuilder localStringBuilder = new StringBuilder("http://");
//          String str3 = this.a;
//          String str4 = str3 + "/favicon.ico";
//          DefaultHttpClient localDefaultHttpClient = this.c.s().k().a();
//          localObject1 = new e(this, 3, str4, localDefaultHttpClient);
//          try
//          {
//            Object localObject2 = ((e)localObject1).call();
//          }
//          catch (Exception localException)
//          {
//            App.b(localException);
//            ah localah2 = this.c;
//            String str5 = this.a;
//           // localah2.a(null, str5, 0);
//          }
//          continue;
//        }
      }
    }
  }

  public final void a(boolean paramBoolean1, String paramString1, byte[] paramArrayOfByte, boolean paramBoolean2, String paramString2, boolean paramBoolean3)
  {
  }

  public final void a(boolean paramBoolean, byte[] paramArrayOfByte, com.kksoft.readcm.objects.j paramj)
  {
  }

  public final void a(boolean paramBoolean, byte[] paramArrayOfByte, String paramString, com.kksoft.readcm.objects.j paramj)
  {
  }

  public final void a(byte[] paramArrayOfByte, String paramString)
  {
    Bitmap localBitmap = null;
    if ((paramArrayOfByte != null) && (paramString != null) && (paramString.indexOf("image/") >= 0))
    {
      int i = paramArrayOfByte.length;
      localBitmap = BitmapFactory.decodeByteArray(paramArrayOfByte, 0, i);
    }
    ah localah = this.c;
    String str1 = this.a;
//    localah.a(localBitmap, str1, 1);
    if (localBitmap == null);
    while (true)
    {
      return;
//      if (b.a(this.b) != null)
//      {
//        try
//        {
//          String str2 = this.b;
//          FileOutputStream localFileOutputStream = new FileOutputStream(str2);
//          localFileOutputStream.write(paramArrayOfByte);
//          localFileOutputStream.close();
//        }
//        catch (IOException localIOException)
//        {
//          App.a(localIOException, 1);
//        }
//        catch (Throwable localThrowable)
//        {
//          App.b(localThrowable);
//        }
//        continue;
//      }
    }
  }

  protected final void c()
  {
    this.c = null;
  }

  public final boolean p()
  {
    return false;
  }

}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.b.j
 * JD-Core Version:    0.6.0
 */